/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo02;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class PersonTest {
      public static void main(String[] args) {
        Person p1=new Person("张三","13548796541","长岗56号");
        Person p2=new Person("李四","13548796542","长岗57号");
        Person p3=new Person("王五","13548796543","长岗58号");
        
        List T=new ArrayList();
        T.add(p1);
        T.add(p2);
        T.add(p3);
        
          System.out.println("ArrayList的元素是:");
          System.out.println(T);
    }

}
